/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package testes;

import br.com.ufpa.sorteio.dao.ProfessorDAO;
import br.com.ufpa.sorteio.entidade.Professor;

/**
 *
 * @author Weslley
 */
public class CadastraProfessor {

    public static void main(String args[]) {
        
        Professor professor = new Professor();
        ProfessorDAO dao = new ProfessorDAO();
        
        professor.setNome("Admin");
        professor.setUsername("admin");
        professor.setPasswd("123");
        
        dao.startOperation();
        dao.save(professor);
        dao.stopOperation(true);

    }
    
}
